﻿@model IEnumerable<orienta.Models.ORIMaeSolicitud>

@{
    ViewBag.Title = "Busqueda avanzada";
}
<table class="tablaPrincipal_MIDIS" width="100%" cellpadding="7" border="0" cellspacing="0">
    <tbody>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tbody>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <table class="tablaTitulo_MIDIS" style="width:150PX;" cellpadding="2" cellspacing="0" border="0">
                                                    <tbody>
                                                        <tr>
                                                            <td align="center">
                                                                <div id="general" class="divTitulo_MIDIS" style="width: 150px; padding-top: 0px; padding-bottom: 0px;"><b style="margin-left: 0px; margin-right: 0px; background-color: rgb(229, 140, 0); margin-bottom: 0px; background-position: initial initial; background-repeat: initial initial;" class="niftycorners"><b class="r1" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b><b class="r2" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b><b class="r3" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b><b class="r4" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b></b>
                                                                    <span style="background-color:#b50055;color:white;">[BUSQUEDA AVANZADA]</span>
                                                                    <b style="margin-left: 0px; margin-right: 0px; background-color: rgb(229, 140, 0); margin-top: 0px; background-position: initial initial; background-repeat: initial initial;" class="niftycorners"><b class="r4" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b><b class="r3" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b><b class="r2" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b><b class="r1" style="background-color: rgb(0, 136, 204); border-color: rgb(114, 138, 102);"></b></b></div>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                        <td>
                                            <table>
                                            <tr>
                                            <td>
                                                @Html.TextBox("fechaRegInicio", Request["fechaRegInicio"])
                                             </td>
                                            <td>
                                                @Html.TextBox("fechaRegInicio", Request["fechaRegInicio"])
                                             </td>
                                             </tr>
                                             <tr>
                                             <td colspan="2">
                                                @Html.TextBox("fechaRegInicio", Request["fechaRegInicio"])
                                             </td>
                                             </tr>
                                             </table>
                                         </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>


@if (Model.ToArray<orienta.Models.ORIMaeSolicitud>().Length > 0)
{
<table>
    <tr>
        <th>
            ORIMaeUsuario
        </th>
        <th>
            nAnnSolicitud
        </th>
        <th>
            ORIMaeDependencia
        </th>
        <th>
            nIdePrograma
        </th>
        <th>
            vNumCorrelativo
        </th>
        <th>
            dtFecSolicitud
        </th>
        <th>
            ORIDetCompendio2
        </th>
        <th>
            nIdeSolic
        </th>
        <th>
            ORIDetCompendio1
        </th>
        <th>
            nIdeIdioma
        </th>
        <th>
            nIdeEstadoSol
        </th>
        <th>
            ORIDetCompendio3
        </th>
        <th>
            ORIDetSumilla1
        </th>
        <th>
            nIdTipoSolicitud
        </th>
        <th>
            ORIDetCompendio
        </th>
        <th>
            ORIDetSumilla
        </th>
        <th>
            dtFecRegistro
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
       
        <td>
            @Html.DisplayFor(modelItem => item.nAnnSolicitud)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ORIMaeDependencia.vSigDep)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nIdePrograma)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtFecSolicitud)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ORIDetCompendio2.vCodElemento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nIdeSolicitud)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ORIDetCompendio1.vCodElemento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nIdeIdioma)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.nIdeEstadoSol)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ORIDetCompendio3.vCodElemento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtFecRegistro)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.nIdeSolicitud }) |
        </td>
    </tr>
}

</table>
}
